﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdEdit.aspx.cs" Inherits="CNVP.JShop.Web.Admin.AdEdit" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
     <meta content="IE=7" http-equiv="X-UA-Compatible" />
     <link href="CSS/Edit.css" rel="stylesheet" type="text/css" />
     <script src="../Scripts/jquery.js" type="text/javascript"></script>
     <script src="../Scripts/Common.js" type="text/javascript"></script>
    <script type ="text/javascript">
        $(function () {
            $("#btUp").click(function () {
                var $txtHomeLinkUrl = $("#txtHomeLinkUrl");
                var $txtDownLoadUrl = $("#txtDownLoadUrl");
                if (!IsValidURL($txtDownLoadUrl.val())) {
                    alert("登陆器下载地址格式不正确！");
                    $txtDownLoadUrl.focus();
                    return false;
                }
                if (!IsValidURL($txtHomeLinkUrl.val()))
                {
                    alert("主页地址格式不正确！");
                    $txtHomeLinkUrl.focus();
                    return false;
                }
                var $txtOrderID = $("#txtOrderID");
                if ($txtOrderID.val() == "") {
                    alert("请输入排序！");
                    $txtOrderID.focus();
                    return false;
                }
                else if (!IsInteger($txtOrderID.val())) {
                    alert("排序格式不正确！");
                    $txtOrderID.focus();
                    return false;
                }
            });
        });
   </script>
   <link href="JS/jquery-calendar.css" rel="stylesheet" type="text/css" />
<script src="JS/jquery-calendar.js" type="text/javascript"></script>
<script type="text/javascript">
		//<![CDATA[
    $(document).ready(function () {
        $("#txtOpenTime,#txtPostTime").calendar();
    });
		//]]>
</script>
</head>
<body>
    <form id="form1" runat="server">
       <div class="Content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cell">
                <tr>
                    <td class="cell_group">
                        <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="AdList.aspx">广告管理</a><asp:Label ID="lbTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                </table>
                     <table border="0" cellpadding="0" cellspacing="0" class="division">
                         <tr>
                            <th>信息类别:</th>
                            <td>
                                 <asp:DropDownList ID="ddlDisplayID" runat="server" Width="150px">
                                    <asp:ListItem Value="0">--普通套黄--</asp:ListItem>
                                    <asp:ListItem Value="1">--全天固定--</asp:ListItem>
                                    <asp:ListItem Value="2">--通宵固顶--</asp:ListItem>
                                    <asp:ListItem Value="3">--通宵广告--</asp:ListItem>
                                </asp:DropDownList>
                                </td>
                        </tr>
                        <tr>
                            <th>广告发布时间：</th>
                            <td>
                                <asp:TextBox ID="txtPostTime" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>服务器名称:</th>
                            <td><asp:TextBox ID="txtServerName" runat="server" MaxLength="12" /></td>
                        </tr>
                        <tr>
                            <th>登陆器名称:</th>
                            <td><asp:TextBox ID="txtLServerName" runat="server" MaxLength="12" /></td>
                            
                        </tr>
                        <tr>
                            <th>登陆器下载地址：</th>
                            <td><asp:TextBox ID="txtDownLoadUrl" runat="server" MaxLength="255" Width="355px" Text="http://" /></td>  
                        </tr>
                        <tr>
                            <th>开区时间:</th>
                            <td><asp:TextBox ID="txtOpenTime" runat="server" /></td>
                        </tr>
                        <tr>
                            <th>版本介绍:</th>
                            <td><asp:TextBox ID="txtEditionInfor" runat="server" /></td>
                        </tr>
                        <tr>
                            <th>主页名称：</th>
                            <td><asp:TextBox ID="txtHomeLink" runat="server" /></td>
                        </tr>
                        <tr>
                            <th>主页地址：</th>
                            <td><asp:TextBox ID="txtHomeLinkUrl" runat="server" MaxLength="255" Width="355px" Text="http://" /></td>
                        </tr>

                        <tr>
                            <th>
                                  显&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;示:</th>
                            <td>
                                  <asp:RadioButtonList ID="rblIsShow" runat="server" 
                                      CssClass="RadioButtonListTable" RepeatDirection="Horizontal" Width="100px">
                                    <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                    <asp:ListItem  Value="0">否</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序:</th>
                            <td>
                                  <asp:TextBox ID="txtOrderID" runat="server" MaxLength="50" Text="0" />
                                </td>
                        </tr>
                    </table>
                 <div class="EditBtn">  
            <asp:Button ID="btUp" runat="server" Text="提交" OnClick="btUp_Click" />
            <input type="button" value="取消" onclick="javascript:history.go(-1)" />
            </div>
        </div>
    </form>
</body>
</html>
